package org.ellwood.core.common.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.ellwood.core.common.entity.base.BaseUserInfo;

import java.util.HashSet;
import java.util.Set;

/**
 * @ProjectName: ellwood-boot-pro
 * @PackageName: org.ellwood.core.common.entity
 * @ClassName: LoginUser
 * @Description: // 登录用户实体
 * @Author: Ellwood
 * @CreateDate: 2024/6/18 - 上午10:25
 * @Version: V1.0.0
 */
@Data
public class LoginUser {

    {
        permissions = new HashSet<>();
        roles = new HashSet<>();
    }

    @Schema(description = "基础用户信息")
    private BaseUserInfo userInfo;

    @Schema(description = "权限标识列表")
    private Set<String> permissions;

    @Schema(description = "角色列表")
    private Set<String> roles;

}
